package org.zyzboole.base.encrypt.crypto.encryption;


import org.zyzboole.base.encrypt.crypto.AesKit;

/**
 * @Author: zyz
 * @Date: 2022/2/14 15:14
 * @description
 */
public class AES implements EncryptDispose {

    private static class SingletonHolder {
        private static final AES INSTANCE = new AES();
    }

    private AES() {
    }

    public static final AES getInstance() {
        return SingletonHolder.INSTANCE;
    }

    @Override
    public String encrypt(String text) {
        return AesKit.encryptBase64(text);
    }

    @Override
    public String decrypt(String encryptStr) {
        return AesKit.decrypt(encryptStr);
    }


}
